package designPattern.composite;

import java.util.List;

public class File implements Root {

	private String name;
	public File(String name){
		this.name=name;
	}
	@Override
	public boolean addFile(Root file) {
		return false;
	}

	@Override
	public void display() {
		System.out.println("     |___"+name);
	}

	@Override
	public List<Root> getFile() {
		return null;
	}

	@Override
	public boolean removeFile(Root file) {
		return false;
	}

}
